home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilstem / util2 / sweep.doc < prev    next >
Encoding:
Text File  |  1986-11-05  |  2.7 KB  |  61 lines

  1.          
  2.                            HOW  TO  USE  SWEEP.COM
  3.  
  4.          Most DOS commands treat subdirectories like separate floppy disks.  
  5.          SWEEP.COM lets commands range across your whole hard disk.   
  6.                   
  7.          The author of this utility program is Charles Petzold, a contributing 
  8.          editor of PC Magazine.  The ASSEMBLY and BASIC source codes to make 
  9.          SWEEP.COM appeared in the November 12, 1985 issue of PC Magazine, 
  10.          Volume 4, Number 23.
  11.  
  12.          USING SWEEP.COM - SWEEP uses the following syntax:
  13.  
  14.                 SWEEP Command [parameter]
  15.  
  16.          Here, Command is any DOS internal or external command, or any .COM, 
  17.          .EXE, or .BAT file you would normally be able to enter following the 
  18.          DOS prompt. Depending on the command, you may or may not need an 
  19.          additional parameter.  The command following SWEEP will be executed 
  20.          over all nested subdirectories of the default drive, beginning with 
  21.          the current directory.  If the current directory is the root 
  22.          directory, SWEEP will do your whole disk.  Otherwise, it will only 
  23.          sweep across a subset of your hard disk.  Before the specified 
  24.          command is executed, the following message:
  25.          
  26.                 >>> SWEEP >>> directory
  27.  
  28.          will be displayed, indicating the directory in which the command 
  29.          will be executed.  The cursor will pause briefly allowing you to 
  30.          break out of SWEEP by quickly pressing CTRL-BREAK or CTRL-C before 
  31.          the command begins.
  32.  
  33.          For example, to list all files, subdirectory by subdirectory, on 
  34.          your hard disk, enter the following: 
  35.  
  36.                 SWEEP DIR
  37.  
  38.          and you'll get the complete DIR command output for every 
  39.          subdirectory on your hard disk.  Add  >PRN to get a printout.  
  40.  
  41.          To delete all the .BAK backup files, you enter: 
  42.  
  43.                 SWEEP DEL *.BAK
  44.  
  45.          To copy all the .BAS files to a single subdirectory BASIC, you enter:
  46.  
  47.                 SWEEP COPY *.BAS \BASIC
  48.  
  49.          NOTE: SWEEP takes no parameter other than the command to be executed. 
  50.          Thus: 1.) Your default drive must be the one you want SWEEP to work 
  51.          over.  2.) Your current directory on that drive must be that in which 
  52.          you want SWEEP to begin.  3.) The command must be on a path that 
  53.          allows it to work on the default drive and subdirectories.  
  54.          
  55.          To get the complete story, see the article, which starts on 
  56.          page 265 of the above mentioned issue of PC Magazine.
  57.  
  58.          To print this file, set the printer to the top of the page and 
  59.          enter the following command:
  60.                 A>copy SWEEP.DOC prn
  61.